package com.yunhe.service;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import com.yun.dao.addr;
import com.yunhe.bean.AddRess;
import com.yunhe.bean.OrderBuy;
import com.yunhe.util.MySession;

public class addrimpl {
	SqlSession se = MySession.getSession();
	
  public AddRess huode(int i){
	  
    	addr map=se.getMapper(addr.class);
		return map.selectAll(i);
    }
 
    	
public void hu(AddRess address){
	addr map=se.getMapper(addr.class);
	map.insertxinxi(address);
	se.commit();
	}
}
